package com.xcf.service.business.integrateddata.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.integrateddata.BookingCargoTicketsService;
import com.xcf.util.PageData;
@Service
public class BookingCargoTicketsServiceImpl implements BookingCargoTicketsService{
	@Resource(name="daoSupport")
	private DaoSupport dao;
	public List<PageData> findBookingCargoTickets(PageData pd) throws Exception {
		
		return (List<PageData>) dao.findForList("bookingCargoTickets.findByRiverBoatName", pd);
	}
	@Override
	public void saveInfo(PageData pd) throws Exception {
		dao.save("bookingCargoTickets.saveInfo", pd);
		
	}
	@Override
	public void updateInfo(PageData pd) throws Exception {
		dao.update("bookingCargoTickets.updateInfo", pd);
		
	}
	@Override
	public void updateBookNoteInfo(PageData pd) throws Exception {
		dao.update("bookingCargoTickets.updateBookNoteInfo", pd);
	}
	@Override
	public List<PageData> findBookingCargoTicketsByBillCode(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>) dao.findForList("bookingCargoTickets.findByBillCode", pd);
	}
	@Override
	public void deleteInfo(PageData pd) throws Exception {
		dao.delete("bookingCargoTickets.deleteTicketsInfo", pd);
		
	}

}
